package com.sdry.mapper.lz;

import com.sdry.model.lz.*;

import java.util.List;

/**
 * @ClassName MaintResumeMapper
 * @Description 设备维护维修记录
 * @Author lz
 * @Date 2018年9月25日 16:11:23
 * @Version 1.0
 */
public interface MaintResumeMapper {

    /**
     * 设备事故报告添加
     * @param accidentReport
     * @return
     */
    Long addMaintenanceResume(AccidentReport accidentReport);

    Long deleteMaintenanceResumeById(long id);

    Long editMaintenanceResumeById(AccidentReport accidentReport);

    List<AccidentReport> queryMaintenanceResume(LzQueryCriteria criteria);

    int countMaintenanceResume(LzQueryCriteria criteria);



    Long addMaintenanceRecord(MaintenanceRecord maintenanceRecord);

    Long addMaintenanceRecordDetail(MaintenanceRecordDetail maintenanceRecordDetail);

    Long deleteMaintenanceRecordById(long id);

    Long editMaintenanceRecordById(MaintenanceRecord maintenanceRecord);

    List<MaintenanceRecord> queryMaintenanceRecord(LzQueryCriteria criteria);

    int countMaintenanceRecord(LzQueryCriteria criteria);

    Long addDeviceMaintenanceRecords(DeviceMaintenanceRecords deviceMaintenanceRecords);

    Long addDeviceMaintenanceRecordsDetail(DeviceMaintenanceRecordsDetail deviceMaintenanceRecordsDetail);

    Long deleteDeviceMaintenanceRecordsById(long id);

    Long editDeviceMaintenanceRecordsById(DeviceMaintenanceRecords deviceMaintenanceRecords);

    List<DeviceMaintenanceRecords> queryDeviceMaintenanceRecords(LzQueryCriteria criteria);

    int countDeviceMaintenanceRecords(LzQueryCriteria criteria);
    
    List<MaintenanceRecordDetail> queryMaintenanceRecordDetailById(long mId);
    
    List<DeviceMaintenanceRecordsDetail> queryDeviceMaintenanceRecordDetailById(long mId);
    
    /**
	 * 设备事故报告登记安卓接口
	 * @return
	 */
	List<AccidentReport> queryWaitRepairDeviceInter();

	/**
	 * 设备维修申请登记安卓接口
	 * @return
	 */
	List<DeviceBreakdown> queryAccidentReportInter();
}
